<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" style="height: 100%">
<body class="body_hei edit">
<div th:replace="include/head.html::html"></div>
<div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin" style="padding: 20px 0 0 0;background-color: #FFFFFF;height: 100%">
    <input type="hidden" name="parentOid" th:value="${bean.parentOid}">
    <input type="hidden" name="oid" th:field="${bean.oid}">
    <div class="layui-form-item">
        <label class="layui-form-label">部门名称:</label>
        <div class="layui-input-inline">
            <input type="text" name="title" lay-verify="required" placeholder="请输入部门名称" autocomplete="off"
                   class="layui-input" th:field="${bean.deptName}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">部门角色</label>
        <div class="layui-input-inline">
            <select name="roleOid" lay-search="">
                <option value="">请选择部门角色</option>
                <option th:each="item:${sysRoleList}" th:value="${item.oid}" th:selected="${item.oid == sysDeptRole?.roleOid}" th:text="${item.roleName}"></option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">负责人姓名:</label>
        <div class="layui-input-inline">
            <input type="text" name="leader" lay-verify="required" placeholder="请输入负责人姓名" autocomplete="off"
                   class="layui-input" th:field="${bean.leader}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">负责人手机:</label>
        <div class="layui-input-inline">
            <input type="text" name="phone" lay-verify="required" placeholder="请输入负责人手机号" autocomplete="off"
                   class="layui-input" th:field="${bean.phone}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">负责人邮箱:</label>
        <div class="layui-input-inline">
            <input type="text" name="email" lay-verify="required" placeholder="请输入负责人邮箱" autocomplete="off"
                   class="layui-input" th:field="${bean.email}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">排序:</label>
        <div class="layui-input-inline">
            <input type="number" name="sortNum" lay-verify="required" placeholder="请输入排序" autocomplete="off"
                   class="layui-input" th:field="${bean.sortNum}">
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="submit" id="submit" value="确认">
    </div>
</div>
<script>
    layui.use(['jquery','index', 'form'], function () {
        var form = layui.form;
    });
</script>
</body>
</html>